import doubanSpider
import os
import imgDloadThr
import colorAver

#get a pic list form nilin56's account  ->collectSet.json
doubanSpider.main('nilin56')

#creat a forlder 
path = 'home'
try:    
    os.mkdir(path)
except Exception ,e: # if mkdir alreadyx
    pass

#download the pics into the path
imgDloadThr.main(path)

# fname:jpgLink  ->fname2link.json
imgDownload.main(path)

#compute their (r,g,b) value and save into a json file  ->colorSpace.json
colorAver.main(path)
